const mongoose = require('mongoose');

const accountSchema = new mongoose.Schema(
    {
        item: {
            type: String,
            required: true,
        },
        date: {
            type: Date,
            required: true,
        },
        type: {
            type: Number,
            required: true,
        },
        amount: {
            type: Number,
            required: true,
        },
        note: String,
    }
)

const AccountModel = mongoose.model('accounts', accountSchema);

module.exports = AccountModel;

